package cn.itsource.pethome.basic.query;

import com.google.common.annotations.VisibleForTesting;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaesQuery<T> {
    //当前页默认为1
    private Integer currentPage =1;
    //每页条数默认为10
    private Integer pageSize =10;
    //起始页数
    public Integer getBegin(){
        return (this.currentPage -1)*pageSize;

    }
}
